$(document).ready(function () {
    $(".nav-link").click(function () {
        const sub = $(this).siblings("ul");
        sub.slideToggle(300);
    });
    $(function () {
        $(".bodys .aa").on("click", function () {
            const address = $(this).attr("data-src");
            $("iframe").attr("src", address);
        });
    });
});

const aa=document.getElementsByClassName("aa");
for (let i=0;i<aa.length;i++){
    aa[i].addEventListener("click",function (){
        for (let i=0;i<aa.length;i++){
            aa[i].classList.remove("active");
        }
        aa[i].classList.add("active");
    })
}

